<h2>Suppression de tâche(s)</h2>
<form action="index.php?page=adminIndex&mod=todo&action=del&option=check" method="post" class="cssForm">
	<?php if(count($aiassTasksList) !== 0): ?>
		<p class="nolabel"><input type="submit" name="submit" value="Supprimer" /></p>
		<ul class="todoTask">
		<?php foreach($aiassTasksList as $asmTask): ?>
			<?php
			switch($asmTask['statusTask']){
				case 1:
					$sColorStatus = '#900';
				break;
				case 2:
					$sColorStatus = '#090';
				break;
				case 3:
					$sColorStatus = '#009';
				break;
			}
			?>
			<li style="color:<?php echo $sColorStatus ?>">
				<input type="checkbox" name="idTaskDel[]" value="<?php echo $asmTask['idTask'] ?>" />
				<b><?php echo $asmTask['labelTask'] ?></b><span style="font-size:8px">[<?php echo $asmTask['priorityTask'] ?>]</span>  :<br />
				<?php echo nl2br($asmTask['descriptionTask']) ?>
			</li>
		<?php endforeach; ?>
		</ul>
		<p class="nolabel"><input type="submit" name="submit" value="Supprimer" /></p>
	<?php else: ?>
		<p>Aucune tâche n'a été créée.</p>
	<?php endif; ?>
</form>
